#include"../../include/user_tool.h"
void user_tool::log_finished(int fd,string user_name)
{
    for(int i=0;i<user.size();i++)
    {
        if(user[i]==fd)
        {
            names[i]=user_name;
            status[i]=1;
        }
    }
    //添加查询所有好友push
}